package com.itheima.Jiuye06;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

public class Zuoye03 {
    public static void main(String[] args) {
        Date d = new Date();
        SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        String format = s.format(d);
        System.out.println(format);
    }
}
